<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=@page_title || "专业测评系统"%></title>
<link href="/stylesheets/survey_public.css" rel="stylesheet" type="text/css" />
<style>
#content{ width:885px; float:left;}
.content01{ width:885px; float:left; height:42px; border-bottom:1px solid #1a80d0;}
.content01 ul{ width:748px; float:left; padding-left:80px;}
.content01 ul li{ width:69px; float:left; border-right:1px dashed #1a80d0; height:42px; line-height:42px; text-align:center; color:#000000;}
.content01 ul li.bb{ width:49px;}
.content01 ul li.bb02{ width:39px;}
.content01 ul li.bb03{ width:105px;}
.content01 ul li.bb04{ width:180px; border-right:none;}

.content02{ width:715px; float:left; padding:36px 0 0 117px;}
#tj{ width:600px; height:44px; float:left;}
#tj li{ width:107px; height:44px; float:left;}
#tj li.jj{ width:480px; height:30px; float:left; border:1px solid #8d8d8d; text-align:center; line-height:30px; color:#000000; margin-top:12px;}
#tj li.ff{ width:480px;  float:left;  text-align:center; line-height:30px; color:#000000; }

#df{ width:450px; float:left; margin:25px  0 ;}
#df li{ width:131px; float:left;}
#df li.ff{ width:209px; float:left; margin-top:15px;}

#expl{ width:450px; float:left; margin:25px  0 ;}
#expl li{ width:131px; float:left;}
#expl li.first{ width:209px; float:left; margin-top:15px;}

.bian{ width:209px; height:1px; background:#dadada;}
#bg{ width:610px; float:left; margin:15px  0 ;}
#bg li{ width:72px; float:left;}

.back{ width:102px; height:35px; float:right; padding-right:20px; margin:20px 20px 0 0;}
#footer{ width:100%; height:200px; float:left; background:url(/images/user/report/footer.jpg) no-repeat; text-align:center; color:#295c72;}
#footer h1{ margin-top:100px;}
</style>
<script language="javascript"> 
                function printsetup()  { 
                        web.execwb(8,1); // 打印页面设置 
                } 
                function printpreview()  { 
                        web.execwb(7,1); //打印页面预览
                } 
                function copyToClipBoard()  { 
                        var clipBoardContent=""; 
                        clipBoardContent+=document.title; 
                        clipBoardContent+="\n"; 
                        clipBoardContent+=this.location.href; 
                        window.clipboardData.setData("Text",clipBoardContent); 
                        alert("复制成功，粘贴即可！"); 
                }
</script>
</head>

<body>
<div id="page">
	<div id="header">
		<ol>
		<li  id="title-text"><%= @test_record.survey.name %></li>
		</ol>
		<ul>
		<li> <%=current_user.name%>&nbsp;&nbsp;&nbsp;</li>
		<li><a href="#">安全退出</a></li>
		</ul>
</div>
	<div id="content">
    	<div class="content01">
        	<ul>                                           
            <li>姓名</li>
            <li><%=@test_record.username%></li>
            <li>性别</li>
            <li class="bb"><%=@test_record.gender%></li>
            <li>年龄</li>
            <li class="bb02"><%=@test_record.age%></li>
            <li class="bb03">测量日期</li>
            <li class="bb04"><%=@test_record.created_at.strftime('%Y年 %m月%d日')%></li>
            </ul>
        </div>
        <div class="content02">
       	  <ul id="tj">
            <li><img src="/images/user/report/01_03.jpg" width="42" height="18" /></li>
             <% if @test.show_total==true%>
          <% if  @test.formula and @test.formula.size > 0  %>
            <li class="jj"> 总分：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <%=count_by_formula(@total_mark, @test.formula) %>　　　
           <% else %>
           <li class="jj"> 总分：
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <%= @total_mark%>　　　
           <% end %>
          <% end %>
         
           </li>
          </ul>

         <ul style="margin:20px 10px 0 15px;"id="tj">
            <li><font size=""> </font></li>
            <li class="ff">
           
            <% if  @index==0 %>
            一级：得分为95分，是高水平智力。
            <% elsif  @index==1 ||@index==2 %>
            二级：得分75-94分之间，智力水平良好。
            <% elsif @index==3 ||@index＝＝4 %>
            三级：得分25-74分之间，智力水平中等。
            <% elsif @index==5 %>
            四级：得分5-24分之间，智力水平较低。
            <% elsif @index==6 %>
            五级：得分为5分，智力缺陷。
            <% end -%>
            </li>
          </ul>
          <!--图表-->
          
            <ul style="margin-top:20px;"id="bg">
            <li><img src="/images/user/report/bg.jpg" width="47" height="18" /></li>
            <li>
             <iframe name="inner" id="inner" src="/surveys/prof_surveys/_report/<%= @test.norm_info.id %>" marginwidth="0" marginheight="0"
                      frameborder="0" scrolling="no" width="100%" onload="this.height=this.contentWindow.document.body.scrollHeight+40">
              </iframe>
            </li>
            </ul>
        </div>
                          <!--打印功能-->
        <div class="msg" id="webprint" style="mrgiin:10px 100px 0 0;float:right; width:250px;">
      <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="web" name="web" height="0" width="0"></object>
      <input type="button" value="  打  印 " onclick="javascript:window.print();" />
      <input type="button" value="页面设置" onclick="window.print();" />
      <br /><br />
       <a href="/user/reports"><img src="/images/back.png" width="88" height="27" style="margin-left:10px;"/></a>
      </div> <!-- webprint -->
        <!--div class="back">
                </div-->
    </div>
</div>
<div id="footer">
<h1>北京心嘉源咨询有限公司 CopyRight © www.iyaoi.cn 2009</h1>
</div>
</body>
</html>
